import { post, get } from './request'

export function getSystemConfigList(params) {
  return post('/ib/sysconfig/list',params)
}

export function saveUpdateConfig(params) {
  if (params.id) {
    return post('/ib/sysconfig/update',params)
  }
  return post('/ib/sysconfig/save',params)
}

export function getConfigByDomain(domain) {
  return get('/ib/sysconfig/getByDomain?domain=' + domain, {})
}
